←Select platform

Sort(List<MedicalViewerImageData>,MedicalViewerSortCriteria,MedicalViewerSortSeperationCriteria) Method

Summary

Sorts the input list of data based on various values stored inside them.

Syntax

C#
VB
C++
  
Public Overloads Function Sort( _ 
   ByVal inputList As List(Of MedicalViewerImageData), _ 
   ByVal sortCriteria As Leadtools.Medicalviewer.MedicalViewerSortCriteria, _ 
   ByVal separateCriteria As MedicalViewerSortSeparationCriteria _ 
) As Boolean 
             

Parameters

inputList
A list of MedicalViewerImageData that will be stored.

sortCriteria
The criteria to follow when sorting the frames.

seperateCriteria
Determines which DICOM tag will be used to separate the input list into multiple lists. <

For example, if you set the enum to echoNumber, then the input list will be checked for those values. Items with an echo number will be put into a list, and items with a different echo number will be put into another list.

Remarks
  • If sortCriteria is set to Acquisition time, then the method will sort the frames based on the AcquisitionTime data. Otherwise, the method will sort the list based on

    • Image position
    • Image orientation
    • Echo number
    • Instance number
    • Frame of reference UID

    For a successful sorting, it is important to have the data properly filled in.

  • If the sort fails for any reason, it returns false.

Example

For an example, refer to MedicalViewerSeriesStack

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly